import os

from UI_web_wms.zy.Tools.tools import fasong, log

import pytest

if __name__ == '__main__':
    log()
    pytest.main(['./testcase/testcase.py', '-s', '--alluredir=./reports/allureprot', '--html=./reports/baogao.html'])
    os.system('allure generate ./reports/allureprot/ -o ./reports/allure-html --clean')

    fasong(['reports/allure-html/index.html', 'reports/baogao.html', 'log.log'])



